<div class="col-md-10 col-md-offset-1">
	<?php
	/* display message saved in session if any */
	echo $this->Session->flash();
	$profilUser = $this->Session->read('profiluser');
	?>
	<?php echo $this->Form->create('User', array('role' => 'form', 'class' => 'form-horizontal')); ?>
	<h1 class="col-sm-offset-1">Profil bearbeiten:</h1>
	<div class="form-group">
	<?php 
		echo $this->Form->label('firstname', 'Vorname', 'col-sm-2 control-label');
		echo $this->Form->input('firstname',array(
			'class' => 'form-control',
			'value' => $profilUser['firstname'],
			'label' => false,
			'div' => 'input text col-sm-5'
		));
	?>
	</div>
	<div class="form-group">
	<?PHP
		echo $this->Form->label('lastname', 'Nachname', 'col-sm-2 control-label');
		echo $this->Form->input('lastname',array(
			'class' => 'form-control',
			'value' => $profilUser['lastname'],
			'label' => false,
			'div' => 'input text col-sm-5'
		));
	?>
	</div>
	<div class="form-group">
	<?PHP
		echo $this->Form->label('email', 'Email', 'col-sm-2 control-label');
		echo $this->Form->input('email',array(
			'class' => 'form-control',
			'value' => $profilUser['email'],
			'label' => false,
			'div' => 'input text col-sm-5'
		));
	?>
	</div>
	<div class="col-sm-offset-2">
	<?php echo $this->Form->end(__('Speichern')); ?>
	</div>
</div>